package com.charmzenus.it.common.base;

import org.springframework.web.servlet.config.annotation.InterceptorRegistration;

public class InterceptorConfiguration {

    // 公共 排除拦截
    public InterceptorRegistration commonExclude(InterceptorRegistration interceptorRegistration) {

        interceptorRegistration.excludePathPatterns("/error");
        interceptorRegistration.excludePathPatterns("/test/**");
        interceptorRegistration.excludePathPatterns("/favicon.ico");

        return interceptorRegistration;
    }
    // 公共 排除拦截
    public InterceptorRegistration commonInterceptor(InterceptorRegistration interceptorRegistration) {

        interceptorRegistration.addPathPatterns("/**");

        return interceptorRegistration;
    }


}
